/**
 * 
 */
package trigger;

/**
 * @author Philip
 *
 */
public class StandardTrigger extends AbstractTrigger {

	public StandardTrigger(String trigger, String response, int rank) {
		super(trigger, response, rank);
	}

	@Override
	public String trigger() {
		return trigger;
	}

	@Override
	public String response() {
		return response(0);
	}
	
	public String response(int i) {
		return response[i];
	}
	
	@Override
	public boolean triggers(String message) {
		return true;
	}

	@Override
	public void updateVariables(String nickName, String sender, String receiver, String senderHostname, String input) {
		this.receiver = receiver;
	}
}
